<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\common\model\Banner;
use app\common\model\Category as ModelCategory;

/**
 * 分类接口
 */
class Category extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];
    /**
     * 商品分类
     *
     */
    public function goodsCategory()
    {
        $params = request()->param();
        extract($params);
        $Category = ModelCategory::all(['pid' => $pid]);
        $this->success('请求成功', compact('Category'));
    }
}
